import java.awt.*;

public class Aplikazioa {
	public Aplikazioa() {
		Frame frame = new Frame1();
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	    Dimension frameSize = frame.getSize();
	    if (frameSize.height > screenSize.height) {
	      frameSize.height = screenSize.height;
	    }
	    if (frameSize.width > screenSize.width) {
	      frameSize.width = screenSize.width;
	    }
	    frame.setLocation((screenSize.width - frameSize.width)/2, (screenSize.height - frameSize.height)/2);
	  }
	  public static void main(String[] args) {
	    new Aplikazioa();
	  }
}
